USE [BMIG_MENSUAL_POST_CADENA]

 -- creating the store procedure
IF EXISTS (SELECT name 
	   FROM   sysobjects 
	   WHERE  name = 'WASP_M0010_CANTIDAD'
	   AND 	  type = 'P') 
	DROP PROCEDURE WASP_M0010_CANTIDAD
GO

CREATE PROCEDURE [dbo].[WASP_M0010_CANTIDAD] AS
begin 
  SELECT COUNT(*)  AS CANTIDAD
  FROM dbo.ingreso_produccion_UF
END
